<template>
  <div id="app">
    <UserCenter @needLogin="toLogin()" ref="usercenter" />
  </div>
</template>

<script>
import UserCenter from "@/components/UserCenter";

export default {
  name: "App",
  data() {
    return {};
  },
  components: {
    UserCenter,
  },
  methods: {
    toLogin() {
      var newHref =
        process.env.LOGIN_URL + "?originUrl=" + window.location.href;
      window.location.href = newHref;
    },
  },
  created() {
    console.log(process.env);
  },
};
</script>

<style scoped>
/* #app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
} */
</style>
